package com.tanhua.result;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Result<T> implements Serializable {
    private Integer counts;
    private Integer pagesize;
    private Integer pages;
    private Integer page;
    private List<T> items;

    public Result(Integer pages, Integer page, List<T> items) {
        this.pages = pages;
        this.page = page;
        this.items = items;
    }
}
